package cn.lanchengkeji.datafillingsystem;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;


@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableScheduling
@MapperScan("cn.lanchengkeji.datafillingsystem.mapper")
@EnableWebMvc
public class DatafillingsystemApplication implements ServletContextInitializer {


	public static void main(String[] args) {
		SpringApplication.run(DatafillingsystemApplication.class, args);
	}

	@Override
	public void onStartup(ServletContext servletContext)
			throws ServletException {
//        servletContext.setInitParameter("payment.config.path", "classpath:config/payment");
	}
}
